local adeptus_temptation_continue = fk.CreateSkill {
  name = "cf_adeptus_temptation_continue_skill"
}

Fk:loadTranslationTable {
  ["cf_adeptus_temptation_continue_skill"] = "仙跳墙",
}

adeptus_temptation_continue:addEffect(fk.DamageCaused, {
  can_trigger = function(self, event, target, player, data)
    return player == data.from and data.from:getMark("@@cf_adeptus_temptation_skill") > 0 and data.card and
        not data.card:isRuleVirtual()
  end,
  on_trigger = function(self, event, target, player, data)
    local room = data.from.room
    local n = data.from:getMark("@@cf_adeptus_temptation_skill")
    data:changeDamage(2 * n)
    room:setPlayerMark(data.from, "@@cf_adeptus_temptation_skill", 0)
  end
})

return adeptus_temptation_continue
